BigCommerce\Rest\Cart_Controller A

Total Complexity 67
Dependencies 23
Dependents 1
Total lines 965
Lines of code 749
Logical lines of code 162
Comment lines 123
Methods 33
Properties 1

Methods 33

Method Rating Maintainability Complexity Lines of code
get_item_schema()
B
25
2 275
create_item()
S
50 6 27
create_cart()
S
50 6 27
register_routes()
S
37 1 101
get_cart_item()
S
55 6 20
add_to_cart()
S
54 5 21
delete_item()
S
54 5 19
sanitize_option()
S
59 5 14
update_item()
S
49 3 31
get_mini_cart()
S
56 3 19
get_items()
S
58 3 14
get_rendered_item_schema()
S
54 1 22
options_param()
S
55 1 21
modifiers_param()
S
55 1 21
get_empty_mini_cart()
S
59 1 15
variant_id_param()
S
67 1 8
mini_cart_route_path()
S
80 1 3
fetch_cart()
S
67 1 8
get_cart_id()
S
76 1 4
create_route_path()
S
82 1 3
cart_route_path()
S
80 1 3
get_cart_data()
S
67 1 8
item_route_path()
S
80 1 3
prepare_item_for_response()
S
73 1 5
product_id_param()
S
67 1 8
create_postable_line_item()
S
67 1 8
create_cart_permissions_check()
S
82 1 3
cart_id_access_check()
S
79 1 3
cart_id_param()
S
67 1 8
item_id_param()
S
67 1 8
quantity_param()
S
65 1 9
js_config()
S
69 1 6
__construct()
S
75 1 4